package com.example.avmanagerweb.controller;


import com.example.avmanagerweb.entity.GroupOrMember;
import com.example.avmanagerweb.mapper.GpsqryMapper;
import com.example.avmanagerweb.result.RLIST;
import com.example.avmanagerweb.service.AudiogroupinptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xg
 * @since 2023-06-25
 */
@RestController
@RequestMapping("/audiogroupinpt")
public class AudiogroupinptController {
    @Autowired
    private AudiogroupinptService audiogroupinptService;

    @GetMapping("/getGroupOrMember")
    public RLIST getGroupOrMember(){
        List<GroupOrMember> groupOrMember = audiogroupinptService.getGroupOrMember();
        return RLIST.ok().data("data",groupOrMember);

    }

}

